/*
 *    Copyright (c) 2018-2025, boss All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions are met:
 *
 * Redistributions of source code must retain the above copyright notice,
 * this list of conditions and the following disclaimer.
 * Redistributions in binary form must reproduce the above copyright
 * notice, this list of conditions and the following disclaimer in the
 * documentation and/or other materials provided with the distribution.
 * Neither the name of the boss developer nor the names of its
 * contributors may be used to endorse or promote products derived from
 * this software without specific prior written permission.
 * Author: boss
 */

package com.hopes.bizz.poll.om.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.hopes.bizz.poll.gis.vo.GisWater;
import com.hopes.bizz.poll.om.dto.PollRtDataDTO;
import com.hopes.bizz.poll.om.entity.BaseOmDataEntity;
import com.hopes.bizz.poll.om.entity.PollRtDataEntity;
import com.hopes.bizz.poll.om.vo.AQISort;
import com.hopes.bizz.poll.gis.vo.GisAir;
import com.hopes.bizz.poll.om.vo.PollAnalysisDataVO;
import com.hopes.bizz.poll.om.vo.PollRtDataVO;
import com.hopes.bizz.poll.om.vo.WQISort;

import java.util.List;


/**
 * 实时监控数据
 *
 * @author ljh
 * @date 2023-05-22 17:05:57
 */
public interface PollRtDataService extends IService<PollRtDataEntity>, OmHJ212DataService{

    // 根据时间类型和站点类型查询数据
    IPage<PollRtDataVO> queryByMonitorAndTimeType(Page<PollRtDataVO> page, PollRtDataDTO pollRtData);
    /**
     * 根据监控点及数据类型删除的所有数据
     * @param omDataEntity
     */
    void deleteByMonitorSiteIdAndDataType(BaseOmDataEntity omDataEntity);

    // 数据趋势分析
    PollAnalysisDataVO trendAnalysis(PollRtDataDTO pollRtDataDTO);

    //上传数据
    void uploadData(List<PollRtDataDTO> pollUploadDataList);

    AQISort getAqiSort();
    WQISort getWqiSort(Integer monitorType);
    // Gis大气监测数值
    List<GisAir> queryGisAirMonitor();
    // Gis水监测数值
    List<GisWater> queryGisWaterMonitor();
    // Gis大气污染热力图
    List<GisAir> gisAirMonitorRt();
}
